<?php	 	 
$this->breadcrumbs=array(
	'Satkers'=>array('index'),
	'Manage',
);
?>

<h1>Manage Satkers</h1>

<?php	 	  $this->widget('bootstrap.widgets.BootButton', array(
        'type'=>'primary',
        'size'=>'mini',
        'label'=>'Buat Satker',
		'url'=>Yii::app()->createUrl('/eAudit/satker/create'),
    )); ?>
<?php	 	  $this->widget('bootstrap.widgets.BootGridView', array(
    'type'=>'striped bordered condensed',
    'dataProvider'=>$model->search(),
    'filter'=>$model,
    'columns'=>array(
		'kode',
		array(
			'name'=>'nama_satker',
			'type'=>'html',
			'value'=>'CHtml::link($data->nama_satker,array("/eAudit/satker/view","id"=>$data->id))',
		),
		'alamat',
		'telp',
		'fax',
		/*
		'mobile',
		'kepala',
		'balai_id',
		'provinsi_id',
		'jumlah_pegawai',
		'luas_tanah',
		'status_tanah',
		'luas_gedung_kantor',
		'rumah_dinas',
		'kendaraan_roda_4',
		'kendaraan_roda_3',
		'kendaraan_roda_2',
		'komputer_pengolah_data',
		'komputer_administrasi',
		'komputer_server',
		'notebook',
		'handycam',
		'camera_digital',
		'focus_projector',
		'faximile',
		'jaringan_internet',
		*/
		array(
			'class'=>'CButtonColumn',
			'template'=>'{update}{delete}',
			'buttons'=>array(
				'update'=>array(
					//'visible'=>'!Yii::app()->user->checkAccess("pemeriksa")',
					'url'=>'Yii::app()->createUrl("/eAudit/satker/update/id/".$data->id)',
				),
				'delete'=>array(
					//'visible'=>'!Yii::app()->user->checkAccess("pemeriksa")',
					'url'=>'Yii::app()->createUrl("/eAudit/satker/delete/id/".$data->id)',
				),
			),
		),
	),
)); ?>
